import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

// 导入ElementUI
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI);

import Vuex from 'vuex';
Vue.use(Vuex);

// import HelloWorld from '@/components/HelloWorld';
import Live from '@/view/Live';
import Socket from '@/view/Socket';
import Login from '@/Login';
import Demo from '@/view/live/LiveDemo';
import Chater from '@/view/chater/Chater';
// import Player from '@/view/player/Player';
// import Vprogress from '@/view/player/v-progress';
// import Varrow from '@/view/player/v-arrow';
// import Vbar from '@/view/player/v-video-bar';
// import Vbutton from '@/view/player/v-button';

export default new Router({
    routes: [
        {path: '/', redirect: "/demo"},
        {path: '/live', name: 'live', component: Live},
        {path: '/socket', name: 'socket', component: Socket},
        {path: '/login', name: 'login', component: Login},
        {path: '/demo', name: 'demo', component: Demo},
        {path: '/chater', name: 'chater', component: Chater},
        // {path: '/player', name: 'player', component: Player},
        // {path: '/test', name: 'test', component: Vprogress},
        // {path: '/test2', name: 'test2', component: Varrow},
        // {path: '/button', name: 'button', component: Vbutton},
        // {path: '/bar', name: 'bar', component: Vbar},
    ]
});
